<template>
    <div>
        <el-container>
  <el-header>后台管理系统</el-header>
  <el-container>
    <el-aside>
         <el-col :span="24" height="92vh">
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      router>
      <el-submenu>
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>导航一</span>
        </template>
          <el-menu-item index="zhengtwo">选项1</el-menu-item>
          <el-menu-item index="zhengthree">选项2</el-menu-item>
      </el-submenu>
      <el-menu-item index="zhengfour">
        <i class="el-icon-menu"></i>
        <span slot="title">导航二</span>
      </el-menu-item>
      <el-menu-item index="zhengwu">
        <i class="el-icon-setting"></i>
        <span slot="title">导航四</span>
      </el-menu-item>
      <el-menu-item index="zhengliu">
        <i class="el-icon-menu"></i>
        <span slot="title">导航二</span>
      </el-menu-item>
    </el-menu>
  </el-col>
</el-aside>
    <el-main>
        <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
    </div>
</template>

<script>
 export default{
    data() {
        return {
            
        }
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
 }
</script>

<style>
*{
    margin: 0;
    padding: 0;
}
.el-submenu .el-menu-item{
   min-width: 0px;
}
 .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    height: 8vh !important;
    line-height: 8vh;
    
  }
  
  .el-aside {
    background-color: #fff;
    color: #333;
    text-align: center;
   
    height: 92vh;
    width: 12vw !important;

  }
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>